import { useState, useEffect } from "react";
import { Form, Radio } from "antd";
import { CommonModal } from "@/views/components/CommonModal";
const WarehouseOrderSetModal = ({ handleCancel }) => {
	const [form] = Form.useForm();
	const [value, setValue] = useState(1);

	const onOk = () => {
		form.validateFields().then(async value => {
			onCancel();
			fetchList();
		});
	};
	const onCancel = () => {
		handleCancel();
		form.resetFields();
	};
	const onChange = e => {
		setValue(e.target.value);
	};
	return (
		<CommonModal
			title={{ title: "入库单设置" }}
			className="views-table-dialog"
			visible={true}
			onOk={onOk}
			onCancel={onCancel}
			width="396px"
			minHeight="150px"
		>
			<Form>
				<div>售后单自动入库</div>
				<Form.Item label="" name="status">
					<Radio.Group defaultValue={1} onChange={onChange} style={{ marginLeft: "10px" }}>
						<Radio style={{ marginRight: 60, marginTop: 10 }} value={1}>
							开启
						</Radio>
						{/* <Radio value={2}>关闭</Radio> */}
					</Radio.Group>
				</Form.Item>
			</Form>
		</CommonModal>
	);
};

export default WarehouseOrderSetModal;
